import { Controller, Get } from '@nestjs/common';
import { AppService } from './app.service';

//  添加请求路径 
// 方式2 在控制器加  各个具体模块的命名
@Controller()
export class AppController {
  constructor(private readonly appService: AppService) {}

  @Get()
  getHello(): string {
    return this.appService.getHello();
  }

  @Get('/cart')
  getCart(): string {
    return 'this is cart~';
  }
}
